package io.renren.modules.car.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.entity.CarTypeEntity;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.car.entity.CarEntity;
import io.renren.modules.car.entity.CarRelateDictReq;
import io.renren.modules.car.entity.req.CarDeleteReq;
import io.renren.modules.car.entity.req.CarSaveReq;

import java.security.InvalidAlgorithmParameterException;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author LL
 * @email wdlyl@163.com
 * @date 2022-04-12 14:48:24
 */
public interface CarService extends IService<CarEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    List<CarEntity> queryCarListByUserId(String userId);
    
    R queryCarInfoByCarId(Integer carId);
    
    /**
     * 车辆信息保存
     * @author zyzhao
     * @date 2022/4/17 15:02
     * @param req req
     */
    void saveCar(CarSaveReq req);
    
    /**
     * 车辆信息变更
     * @author zyzhao
     * @date 2022/4/17 15:02
     * @param req req
     */
    R updateCar(CarSaveReq req);
    
    /**
     * 删除车辆信息
     * @author zyzhao
     * @date 2022/4/17 16:32
     * @param req req
     */
    void removeCar(CarDeleteReq req);
    
    R getDictListByPid(String pid);
    
    R relateDict(CarRelateDictReq req);
}

